home *** CD-ROM | disk | FTP | other *** search
- Path: news.iadfw.net!usenet
- From: Mark Nelson <markn@airmail.net>
- Newsgroups: comp.lang.c
- Subject: Re: Programming Serial Port with 115200bps
- Date: Tue, 19 Mar 1996 22:21:02 -0600
- Organization: customer of Internet America
- Message-ID: <314F87AE.4DA5@airmail.net>
- References: <314EFF4C.709F@cs.ust.hk>
- NNTP-Posting-Host: dal32-09.ppp.iadfw.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0GoldB1 (Win95; I)
-
- Ken Cheung wrote:
- >
- > Dear All,
- >
- > I've been trying to find routines for serial port communication
- > and found one with interrupt driven. However, the highest baud rate
- > was 38400bps only. Any suggestion on where I can find information
- > to program the COM (indeed, the 16550A) into 115200bps?
- >
- > Thanks in advance.
- >
- > Ken Cheung
- > kenken@cs.ust.hk
-
- Under MS-DOS, you have to write directly to the UART in order to
- set the baud rate to 115200. It is simply a matter of setting the
- baud rate divisor to 1. If you have access to any source that
- writes directly to the UART, you should be able to easily modify
- it to support that rate if it doesn't already do so.
-
- There is some C source to handle RS-232 communcations in C on my
- home page. Just follow the links to Articles and pick the one that
- looks right. I think the code in the article will need to be modified,
- but only a tiny bit.
-
- If you are opening the port under Windows, please ignore all this advice.
-
- Mark Nelson
- http://web2.airmail.net/markn
-